<%--
    Document   : index
    Created on : 04-mar-2011, 10:07:09
    Author     : Administrador
--%>

<%@page import="modelo.DTO.DTODataMining"%>
<%@page import="modelo.MoodleHelper"%>
<%@page import="logica.util.Perfil"%>
<%@page import="logica.util.ProfilesUtil"%>
<%@page import="modelo.DTO.PerfilAlumno"%>
<%@page import="modelo.DTO.PerfilesAlumnos"%>
<%@page import="modelo.DTO.DTOFactory"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.List"%>
<%@page import="modelo.DTO.DTOPerfilAlumno"%>
<%@page import="logica.LogicaAlumno"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Jakin</title>
        <link rel="stylesheet" type="text/css" href="css/styles.css" />
        <link rel="stylesheet" type="text/css" href="css/menu.css" />
         <link rel="stylesheet" type="text/css" href="css/table.css" media="all">
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script>

         <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
        <script type="text/javascript" src="js/script.js"></script>
    </head>
    <body>

        <div class="headerPerfilDefecto">
            <br>
            <h1></h1>
            <br>
            <div id="hmain">
            <br>

            <%--      <TABLE BORDER="1">
                <TR>
                     <%
                int k=0;
                ProfilesUtil pUtil=ProfilesUtil.getInstance();
                Iterator iaPUtil=pUtil.getIterator();
                while (iaPUtil.hasNext()){
                %><th class="table-filterable table-sortable:default">Nombre del perfil:</th>
                   <TH>Cabereca 2</TH>
                   <TH>Cabereca 3</TH>
                </TR>
                <TR>
                   <TD>Dato 1</TD>
                   <TD>Dato 2</TD>
                   <TD>Dato 3</TD>
                </TR>
                <TR>
                   <TD>Dato 4</TD>
                   <TD>Dato 5</TD>
                   <TD>Dato 6</TD>
                </TR>
            </TABLE>

            --%>

            <table>
                <thead>
                <%
                int i=0;
                ProfilesUtil pUtil=ProfilesUtil.getInstance();
                Iterator iPUtil=pUtil.getIterator();
                while (iPUtil.hasNext()){
                %><th class="table-filterable table-sortable:default">Nombre del perfil:</th><%
                    Perfil perfil=(Perfil)iPUtil.next();
                    Iterator iterNombres=perfil.getPerfIterator();
                    while (iterNombres.hasNext()){
                        %><th class="table-filterable table-sortable:default"><%=(String)iterNombres.next()%></th><%
                    }
                    %></tr>
                 </thead>
                 <tbody>

            <tr><td><strong>Indicadores asociados:</strong></td><%
                    Iterator iterReg=perfil.getRegIterator();
                    while(iterReg.hasNext()){
                        %><th class="table-filterable table-sortable:default"><%=(String)iterReg.next()%></th><%
                    }
                        %><td>
                            <form action="controller.jsp" method="POST">
                                <input type="hidden" name="borrado" value="<%=i%>"/>
                                <input type="submit" name="borrar" value="borrar" />
                            </form>
                        </td></tr><%
                    i++;
                }
                %>
             </tbody>

            </table>
        </div>
        <div class="scroll"></div>

        <form action="controller.jsp" method="POST">
            <br>
            <input type="image" name="inicio" value="inicio" src="img/intro/volver.png" />
        </form>

        <ul id="navigation">
            <li class="home"><a href="controller.jsp?inicio" name="inicio" title="Inicio"></a></li>
            <li class="pDefecto"><a href="controller.jsp?perfilesDefecto" name="perfilesDefecto" title="Perfiles defecto"></a></li>
            <li class="cPerfil"><a href="controller.jsp?crearPerfil" name="crearPerfil" title="Crear perfil"></a></li>
            <li class="leyendaRegistros"><a href="controller.jsp?leyendaRegistros" name="leyendaRegistros" title="Leyenda registros"></a></li>
            <li class="lanzarJakin"><a href="controller.jsp?lanzarJakin" name="lanzarJakin" title="Lanzar Jakin"></a></li>
        </ul>


        <script type="text/javascript">
            $(function() {
                $('#navigation a').stop().animate({'marginLeft':'-85px'},1000);

                $('#navigation > li').hover(
                    function () {
                        $('a',$(this)).stop().animate({'marginLeft':'-2px'},200);
                    },
                    function () {
                        $('a',$(this)).stop().animate({'marginLeft':'-85px'},200);
                    }
                );
            });
        </script>
        </div>


        </body>
</html>
